<template>
    <div>
        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" router text-color="#1E90FF">
            <el-menu-item index="/user/home" >首页</el-menu-item>
            <el-menu-item index="/user/findcourse">查询课程</el-menu-item>
            <el-menu-item index="/user/myCourse">选课信息</el-menu-item>
            <el-menu-item index="/user/userCenter">用户中心</el-menu-item>
        </el-menu>
    </div>
</template>
  
<script>
export default {
    data() {
        return {
            activeIndex:'/'
        };
    },
    methods: {
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        }
    }
}
</script>

<style>


</style>